﻿using CatUtils.Utils.Currency;
using CatUtils.Utils.Currency.IoUtils;
using CatUtils.Utils.SpecialUtils.ContentRecognition.BaiduUtils.ImageRecognition;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Image_Porn_Identification.UserTool
{
    internal class ImagePronTool
    {
        public static void ClearWithFloder()
        {
            ClearWithFloder(FloderHelper.SelectFloder());
        }

        public static void ClearWithFloder(string FloderPath)

        {
            if (FloderPath == "")
                return;

            List<string> ALLFile = FloderNameHelper.GetFullFileNameList(FloderPath);
            int CompltedCount = 0;
            foreach (var item in ALLFile)
            {
                new PrintLog().PercentLog(ALLFile.Count, ++CompltedCount);
                if (new BaiduImgSexy().GetComicFile(item))
                {
                    FloderHelper.MoveToChildFloder(item, "色情图片");
                }
            }
        }
    }
}